package com.zhy.generator.codegen.mybatis.javacontroller;

/**
 * @author 源
 */
public class JavaControllerMethodConstant {
    public static final String LIST_METHOD = "lists";
    public static final String LIST_METHOD_MAPPING = "/lists";
    public static final String LIST_METHOD_desc = "查询列表";
    public static final String LIST_METHOD_ANNOTATION = "@GetMapping";
    public static final String LIST_METHOD_HTTPMETHOD = "GET";

    public static final String GET_METHOD = "get";
    public static final String GET_METHOD_MAPPING = "/get";
    public static final String GET_METHOD_desc = "查询一条数据";
    public static final String GET_METHOD_ANNOTATION = "@GetMapping";
    public static final String GET_METHOD_HTTPMETHOD = "GET";

    public static final String ADD_METHOD = "add";
    public static final String ADD_METHOD_MAPPING = "/add";
    public static final String ADD_METHOD_desc = "添加一条数据";
    public static final String ADD_METHOD_ANNOTATION = "@PostMapping";
    public static final String ADD_METHOD_HTTPMETHOD = "POST";

    public static final String EDIT_METHOD = "edit";
    public static final String EDIT_METHOD_MAPPING = "/edit";
    public static final String EDIT_METHOD_desc = "修改一条数据";
    public static final String EDIT_METHOD_ANNOTATION = "@PostMapping";
    public static final String EDIT_METHOD_HTTPMETHOD = "POST";

    public static final String DEL_METHOD = "delete";
    public static final String DEL_METHOD_MAPPING = "/delete";
    public static final String DEL_METHOD_desc = "删除一条数据";
    public static final String DEL_METHOD_ANNOTATION = "@GetMapping";
    public static final String DEL_METHOD_HTTPMETHOD = "GET";

    public static final String RESULT_RESPONSE = "com.zhy.generator.commons.response.ResultResponse";
    public static final String RESULT_UTIL = "com.zhy.generator.commons.response.ResultUtil";
    public static final String RESULT_ERRORCODE = "com.zhy.generator.commons.response.ResultErrCodeEnum";

}
